@import '~antd/es/style/themes/default.less';

.main {
  width: 328px;
  margin: 0 auto;
  position: relative;
  @media screen and (max-width: @screen-sm) {
    width: 95%;
    max-width: 328px;
  }

  :global {
    .@{ant-prefix}-tabs-nav-list {
      margin: auto;
      font-size: 16px;
    }
  }

  &.login {
    .login-form {
      display: block;
    }

    .scan-qrcode {
      display: none;
    }
  }

  &.qrcode {
    .login-form {
      display: none;
    }

    .scan-qrcode {
      display: block;
    }
  }

  .icon {
    margin-left: 16px;
    color: rgba(0, 0, 0, 0.2);
    font-size: 24px;
    vertical-align: middle;
    cursor: pointer;
    transition: color 0.3s;
  
    &:hover {
      color: @primary-color;
    }
  }
  
  .qrCodeMask {
    position: absolute;
    right: 0;
    top: 0;
    width: 26px;
    height: 26px;

    img {
      width: 100%;
      height: 100%;
      padding: 8px 8px 0 0;
      cursor: pointer;
    }
  }
}
